package com.czwx.bee.business.manager.config.security;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 登录请求模型
 * 
 * @author Wiki
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class JwtAuthenticationRequest implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value="账号")
	@Length(min = 5, max = 20, message = "用户名长度必须为5-20位")
	private String username;

	@ApiModelProperty(value="密码")
	@Length(min = 5, max = 21, message = "密码长度必须为6-20位")
	private String password;

//	@ApiModelProperty(value="保持登录",name="0.不保存1.保存账号,")
//	private Integer rememberMe=1;

}
